package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rabbiter.oes.entity.Major;
import com.rabbiter.oes.vo.MajorVO;

import java.util.List;

public interface MajorService {

    IPage<MajorVO> findPage(Page<MajorVO> page, String name);

    public List<Major> findAll();

    public Long findCountByName(String name);

    public Major findById(Integer id);

    public int deleteById(Integer id);

    public int update(Major major);

    public int add(Major major);

}
